
import Toast from '@vant/weapp/toast/toast';
Page({
    data: {
        // 初始化店铺名
        shopName:'',
        //星星标签点击变换
        consigne:"addressList.consignee",
        isActive: false,
        activeIcon: 'https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/icon_star.png?sign=9882bb70096c715617c17d75e5fe1836&t=1716464590',//黄色
        inactiveIcon: 'https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/icon_star_n.png?sign=18cbe5493bfef785e17c06bcf393cc82&t=1716464627',//白色
        // 竖轮播图数据
        swiper:[
            {
                image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/new-product-priority-yellow.png?sign=9259aaca9bdaa7fc2a5b9732bfe338a1&t=1716464663",
                text:"加入[阿喜熟客群]，领18元新人礼"
            },
            {
                image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/huanbaooo.png?sign=af606cc79efde2c0af9eb6486d8429dd&t=1716464678",
                text:"按需点单，简约适度，喜享美味！"
            },
        ],
        // 到店取的弹出层
        show: false,
        // 商品信息
        // 初始数量
        screenHeight:"",
        heightArr: 0,
        classfiySelect: "",
      leftText: [{/* 侧栏内容 */
        id: "01",
        text1: "时令上新"
      },
      {
        id: "02",
        text1: "轻负担推荐"
      },
      {
        id: "03",
        text1: "清爽真果茶"
      },
      {
        id: "04",
        text1: "轻乳茶"
      },
      {
        id: "05",
        text1: "浓郁真乳茶"
      },
      {
        id: "06",
        text1: "茗茶/咖啡/雪糕"
      },
      {
        id: "07",
        text1: "热饮推荐"
      },
      {
        id: "08",
        text1: "凑单想吃"
      },
      {
        id: "09",
        text1: "小料/提示"
      }

      ],
      rightData:[/* 商品信息 */
        {
            id: "01",
            big: "时令上新",/* 时令的大标题*/
            frist: [
                {
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-one/hj1.jpg?sign=5d30e542ffa12c94b29d56eb1f60c694&t=1716464738",
                    title:"BE@RBRICK.黑凤梨",
                    title2:"优选当季菲律宾凤梨+经典无香精四季春茶",
                    tag1:"喜茶xBRICK",
                    tag2:"含茶",
                    big:"时令上新"
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-one/ym2.jpg?sign=8baef201dece06819b0a9d6dc8aed464&t=1716464754",
                    title:"多肉杨梅",
                    title2:"优选时令杨梅鲜果+经典无香精绿研茶底，真果肉",
                    tag1:"杨梅",
                    tag2:"含茶",
                    big:"",
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-one/mmt3.jpg?sign=378224a84c9cb6c79367f8804817b60c&t=1716464767",
                    title:"多肉莓莓桃",
                    title2:"当季新鲜水蜜桃+新鲜草莓+无香精绿研茶底",
                    tag1:"冷热皆宜",
                    tag2:"含茶",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-one/tl4.jpg?sign=184ab044ece58b2e4ea12e2c28de632e&t=1716464786",
                    title:"多肉桃李（首创）",
                    title2:"优选时令李子鲜果+当季桃子鲜果+经典无香精绿研茶底",
                    tag1:"冷热皆宜",
                    tag2:"含茶",
                    big:""
                }
            ],
        },
        {
            id: "02",
            big: "轻负担推荐",
                frist: [
                    {
                        price:"19",
                        image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-two/pt1.jpg?sign=cab02db036d5452fd1d9915adfc7bf74&t=1716464815",
                        title:"多肉葡萄（首创）",
                        title2:"当季夏黑葡萄+经典无香精绿研茶汤，2018年首创，喜茶销冠成员",
                        tag1:"冷热皆宜",
                        tag2:"含茶",
                        big:""
                    },{
                        price:"19",
                        image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-one/ym2.jpg?sign=8baef201dece06819b0a9d6dc8aed464&t=1716464754",
                        title:"多肉杨梅",
                        title2:"优选时令杨梅鲜果+经典无香精绿研茶底，真果肉",
                        tag1:"杨梅",
                        tag2:"含茶",
                        big:""
                    },{
                        price:"19",
                        image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-one/hj1.jpg?sign=5d30e542ffa12c94b29d56eb1f60c694&t=1716464738",
                        title:"BE@RBRICK.黑凤梨",
                        title2:"优选当季菲律宾凤梨+经典无香精四季春茶",
                        tag1:"喜茶xBRICK",
                        tag2:"含茶",
                        big:""
                    },{
                        price:"19",
                        image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-two/yymm4.jpg?sign=fa2b51ef71b30ac6ddf7c87d33d5d01a&t=1716464864",
                        title:"椰椰芒芒",
                        title2:"当季新鲜芒果+优选椰乳+现煮西米,浓郁爽口",
                        tag1:"含椰子及乳制品",
                        tag2:"含茶",
                        big:""
                    },{
                        price:"19",
                        image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-one/tl4.jpg?sign=184ab044ece58b2e4ea12e2c28de632e&t=1716464786",
                        title:"多肉桃李（首创）",
                        title2:"优选时令李子鲜果+当季桃子鲜果+经典无香精绿研茶底",
                        tag1:"冷热皆宜",
                        tag2:"含茶",
                        big:""
                    },{
                        price:"19",
                        image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-two/xnm5.jpg?sign=5bad43cad405b1e6799dbc3c1569a190&t=1716464908",
                        title:"小奶茉（白茉香）",
                        title2:"经典无香精绿研茶汤+无奶精源牧甄奶，鲜醇白茉香",
                        tag1:"无奶精 轻负担",
                        tag2:"冷热皆宜",
                        big:""
                    },{
                        price:"19",
                        image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-two/yqn6.jpg?sign=0cbe6ddef6434e5b74585dbfddacb7c5&t=1716464922",
                        title:"鸭喜香轻柠茶",
                        title2:"暴打新鲜柠檬+经典无香精鸭屎香单丛茶，清幽回甘",
                        tag1:"冷热皆宜",
                        tag2:"含茶",
                        big:""
                    },{
                        price:"19",
                        image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-two/mbhy7.jpg?sign=072df7aba58ba5a9aedd7349256b61ee&t=1716464939",
                        title:"满杯红柚(首创)",
                        title2:"鲜切红柚片+爆汁红柚粒+无香精绿研，2016年首创",
                        tag1:"冷热皆宜",
                        tag2:"含茶",
                        big:""
                    }
                ],
        },
        {
            id: "03",
            big: "清爽真果茶",
            frist: [
                {
                    price:"18",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-two/pt1.jpg?sign=cab02db036d5452fd1d9915adfc7bf74&t=1716464815",
                    title:"多肉葡萄（首创）",
                    title2:"当季夏黑葡萄+经典无香精绿研茶汤，2018年首创，喜茶销冠成员",
                    tag1:"冷热皆宜",
                    tag2:"含茶",
                    big:""
                },{
                    price:"20",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-two/pt1.jpg?sign=cab02db036d5452fd1d9915adfc7bf74&t=1716464815",
                    title:"多肉葡萄（超大杯）（首创）",
                    title2:"当季夏黑葡萄+经典无香精绿研茶汤，2018年首创，超大杯",
                    tag1:"上新",
                    tag2:"含茶",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-three/zzpt3.jpg?sign=6acf1b2033a0137ef400e9238f8a838d&t=1716464988",
                    title:"轻芝多肉葡萄（首创）",
                    title2:"当季夏黑葡萄+无香精绿研茶汤+无奶精芝士，2002年首创",
                    tag1:"冷热皆宜",
                    tag2:"含乳制品、茶",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-two/yymm4.jpg?sign=fa2b51ef71b30ac6ddf7c87d33d5d01a&t=1716464864",
                    title:"椰椰芒芒",
                    title2:"当季新鲜芒果+优选椰乳+现煮西米,浓郁爽口",
                    tag1:"含椰子及乳制品",
                    tag2:"含茶",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-three/mmgl5.jpg?sign=8b41d2f55b1193a2b4ec8c06b937f2d3&t=1716465062",
                    title:"芒芒甘露（首创）",
                    title2:"当季新鲜芒果+红柚果粒+无香精绿研茶汤,2022年首创",
                    tag1:"可做热饮",
                    tag2:"含椰子及乳制品",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-two/yqn6.jpg?sign=0cbe6ddef6434e5b74585dbfddacb7c5&t=1716464922",
                    title:"鸭喜香轻柠茶",
                    title2:"暴打新鲜柠檬+经典无香精鸭屎香单丛茶，清幽回甘",
                    tag1:"冷热皆宜",
                    tag2:"含茶",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-three/lyqn7.jpg?sign=5524b9166d74e8fc6e5938ff085e32cf&t=1716465112",
                    title:"绿研轻柠茶",
                    title2:"暴打新鲜柠檬+甄选茶园定制绿研茶汤",
                    tag1:"冷热皆宜",
                    tag2:"含茶",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-three/drqt8.jpg?sign=0257c947e19e490524af48b676b0f350&t=1716465129",
                    title:"多肉青提",
                    title2:"优选青提鲜果+无香精绿研茶汤，爆炸多肉",
                    tag1:"青提鲜果",
                    tag2:"含茶",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-three/qtqn9.jpg?sign=65073c26c779017cfc5904d352c542b2&t=1716465151",
                    title:"青提轻柠茶",
                    title2:"优选青提鲜果+无香精绿研茶汤+新切柠檬",
                    tag1:"青提鲜果",
                    tag2:"含茶",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-three/bxl10.jpg?sign=1ab0290a182072bd9a17816f0bc3c979&t=1716465165",
                    title:"超爽百香绿",
                    title2:"酸甜百香果+新切柠檬无香精绿研茶汤",
                    tag1:"百香果",
                    tag2:"含茶",
                    big:""
                }
            ],
        },
        {
            id: "04",
            big: "轻乳茶",
            frist: [
                {
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-two/xnm5.jpg?sign=5bad43cad405b1e6799dbc3c1569a190&t=1716464908",
                    title:"小奶茉（白茉香）",
                    title2:"经典无香精绿研茶汤+无奶精源牧甄奶，鲜醇白茉香",
                    tag1:"无奶精 轻负担",
                    tag2:"冷热皆宜",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-four/cdxnm2.jpg?sign=3afd6ab257561b1ce92d971427c24c2b&t=1716465287",
                    title:"小奶茉（超大杯）",
                    title2:"经典无香精绿研茶汤+无奶精源牧甄奶，升级超大杯",
                    tag1:"无奶精 轻负担",
                    tag2:"冷热皆宜",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-four/cgsjc3.jpg?sign=925dab2703771b267ec79e1745fe64f0&t=1716465303",
                    title:"春光（四季春）",
                    title2:"经典无香精四季春茶+无奶精源牧甄奶，口感轻盈",
                    tag1:"无奶精 轻负担",
                    tag2:"冷热皆宜",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-four/lhy5.jpg?sign=5e7d97092e484339d0ff42eaccd1737a&t=1716465321",
                    title:"龙跃红（红袍香）",
                    title2:"经典无香精龙跃红袍乌龙茶+无奶精源牧甄奶",
                    tag1:"无奶精 轻负担",
                    tag2:"冷热皆宜",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-four/cgsjc3.jpg?sign=925dab2703771b267ec79e1745fe64f0&t=1716465303",
                    title:"天青雨（果香）",
                    title2:"经典无香精天青雨乌龙茶+无奶精源牧甄奶，花果香",
                    tag1:"无奶精 轻负担",
                    tag2:"冷热皆宜",
                    big:""
                }
            ],
        },
        {
            id: "05",
            big: "浓郁真乳茶",
            frist: [
                {
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-five/htbb1.jpg?sign=353640b2c578772466389475bb5525b9&t=1716465347",
                    title:"烤黑糖波波真乳茶",
                    title2:"65分钟慢熬黑糖波波+无奶精真牛乳+无香精红茶底",
                    tag1:"冷热皆宜",
                    tag2:"含乳制品、茶",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-five/htbb2.jpg?sign=bd47153db9f0aa8e1d6a81cb639fac1e&t=1716465362",
                    title:"黑糖波波真乳茶",
                    title2:"慢熬黑糖波波+无香精红茶底",
                    tag1:"冷热皆宜",
                    tag2:"含乳制品、茶",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-five/htbb3.jpg?sign=75ce5f37bc895edd52fca19b9efce5fb&t=1716465378",
                    title:"黑糖波波真牛乳",
                    title2:"65分钟慢熬黑糖波波+无奶精真牛乳",
                    tag1:"冷热皆宜",
                    tag2:"含乳制品、茶",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-five/xc4.jpg?sign=7b8713db33a2161648b4a9552c0c2e82&t=1716465395",
                    title:"仙茶大满贯",
                    title2:"自制嫩滑仙草冻+无奶精嫣红牛乳茶",
                    tag1:"冷热皆宜",
                    tag2:"含乳制品、茶",
                    big:""
                }
            ],
        },
        {
            id: "06",
            big: "茗茶/咖啡/雪糕",
            frist: [
                {
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-six/zzly1.jpg?sign=07c63774798a588867db7ad7262cd275&t=1716465413",
                    title:"芝芝绿研茶后",
                    title2:"300+朵茉莉花无香精绿研茶+无奶精芝士",
                    tag1:"冷热皆宜",
                    tag2:"含乳制品、茶",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-six/zzsjc2.jpg?sign=6ea94f73877e5964d4f16045af47d4d3&t=1716465538",
                    title:"芝芝四季春茶",
                    title2:"无香精四季春茶+无奶精芝士",
                    tag1:"冷热皆宜",
                    tag2:"含乳制品、茶",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-six/zzjfc3.jpg?sign=0384e3f349d0252289b5b4069f09a6a2&t=1716465934",
                    title:"芝芝金凤茶王（首创）",
                    title2:"喜茶经典金凤茶王+无奶精芝士",
                    tag1:"冷热皆宜",
                    tag2:"含乳制品、茶",
                    big:""
                },{
                    price:"8",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-six/cly4.jpg?sign=cdea96a174ef431ab9fa6964e774c36f&t=1716465969",
                    title:"纯绿研茶后",
                    title2:"300+朵茉莉花+无香精绿研茶",
                    tag1:"冷热皆宜",
                    tag2:"含乳制品、茶",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-six/ysxxg4.jpg?sign=3b6cf9b4ccbe851bc8ed699b3e68aa8a&t=1716465994",
                    title:"鸭屎香雪糕杯",
                    title2:"无奶精真牛乳+优选无香精鸭屎香单丛茶",
                    tag1:"冷制品",
                    tag2:"含乳制品、茶",
                    big:""
                }
            ],
        },
        {
            id: "07",
            big: "热饮推荐",
            frist: [
                {
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-five/htbb1.jpg?sign=353640b2c578772466389475bb5525b9&t=1716465347",
                    title:"烤黑糖波波真乳茶",
                    title2:"65分钟慢熬黑糖波波+无奶精真牛乳+无香精红茶底",
                    tag1:"冷热皆宜",
                    tag2:"含乳制品、茶",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-five/htbb2.jpg?sign=bd47153db9f0aa8e1d6a81cb639fac1e&t=1716465362",
                    title:"黑糖波波真乳茶",
                    title2:"慢熬黑糖波波+无香精红茶底",
                    tag1:"冷热皆宜",
                    tag2:"含乳制品、茶",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-five/htbb3.jpg?sign=75ce5f37bc895edd52fca19b9efce5fb&t=1716465378",
                    title:"黑糖波波真牛乳",
                    title2:"65分钟慢熬黑糖波波+无奶精真牛乳",
                    tag1:"冷热皆宜",
                    tag2:"含乳制品、茶",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-five/xc4.jpg?sign=7b8713db33a2161648b4a9552c0c2e82&t=1716465395",
                    title:"仙茶大满贯",
                    title2:"自制嫩滑仙草冻+无奶精嫣红牛乳茶",
                    tag1:"冷热皆宜",
                    tag2:"含乳制品、茶",
                    big:""
                },
                {
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-two/xnm5.jpg?sign=5bad43cad405b1e6799dbc3c1569a190&t=1716464908",
                    title:"小奶茉（白茉香）",
                    title2:"经典无香精绿研茶汤+无奶精源牧甄奶，鲜醇白茉香",
                    tag1:"无奶精 轻负担",
                    tag2:"冷热皆宜",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-four/cdxnm2.jpg?sign=3afd6ab257561b1ce92d971427c24c2b&t=1716465287",
                    title:"小奶茉（超大杯）",
                    title2:"经典无香精绿研茶汤+无奶精源牧甄奶，升级超大杯",
                    tag1:"无奶精 轻负担",
                    tag2:"冷热皆宜",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-four/cgsjc3.jpg?sign=925dab2703771b267ec79e1745fe64f0&t=1716465303",
                    title:"春光（四季春）",
                    title2:"经典无香精四季春茶+无奶精源牧甄奶，口感轻盈",
                    tag1:"无奶精 轻负担",
                    tag2:"冷热皆宜",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-four/lhy5.jpg?sign=5e7d97092e484339d0ff42eaccd1737a&t=1716465321",
                    title:"龙跃红（红袍香）",
                    title2:"经典无香精龙跃红袍乌龙茶+无奶精源牧甄奶",
                    tag1:"无奶精 轻负担",
                    tag2:"冷热皆宜",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-four/cgsjc3.jpg?sign=925dab2703771b267ec79e1745fe64f0&t=1716465303",
                    title:"天青雨（果香）",
                    title2:"经典无香精天青雨乌龙茶+无奶精源牧甄奶，花果香",
                    tag1:"无奶精 轻负担",
                    tag2:"冷热皆宜",
                    big:""
                }
            ],
        },
        {
            id: "08",
            big: "凑单想吃",
            frist: [
                {
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-eight/jfcs1.jpg?sign=517ef6cff18a7fa30f328101a36db4ee&t=1716466162",
                    title:"金凤茶酥",
                    title2:"金凤乌龙茶元素+传统茶酥",
                    tag1:"点心",
                    tag2:"含小麦、乳成分",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-eight/qr2.jpg?sign=c6ed244375a101792194c2133a10968a&t=1716466181",
                    title:"轻乳烘焙茶泡芙",
                    title2:"甜美泡芙+无奶精奶油",
                    tag1:"点心",
                    tag2:"含小麦、乳成分",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-eight/qrmc3.jpg?sign=145f8480860ddea68e7e865d29185d3d&t=1716466195",
                    title:"轻乳烘抹茶泡芙",
                    title2:"甜美泡芙+无奶精奶油",
                    tag1:"点心",
                    tag2:"含小麦、乳成分",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-eight/mym4.jpg?sign=7337e1300ba7457cd3f0ab581826ef57&t=1716466217",
                    title:"蔓越莓司康",
                    title2:"甜美司康+无奶精奶油",
                    tag1:"点心",
                    tag2:"含小麦、乳成分",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-eight/nnmc5.jpg?sign=8c0cbdd75dfc046ceb425d46ce4dd30c&t=1716466246",
                    title:"糯糯抹茶司康",
                    title2:"甜美司康+无奶精奶油",
                    tag1:"点心",
                    tag2:"含小麦、乳成分",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-eight/nnmcj6.jpg?sign=eea3a633633dfdbbd887a451b460e2b9&t=1716466264",
                    title:"糯糯抹茶卷",
                    title2:"甜美抹茶蛋糕+无奶精奶油",
                    tag1:"点心",
                    tag2:"含小麦、乳成分",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-eight/qmm7.jpg?sign=f6ac9a13b6d4caa31a72e4287e5f2a46&t=1716466279",
                    title:"轻茫茫甘露糯米糍",
                    title2:"甜美糯米糍+芒果粒+无奶精奶油",
                    tag1:"点心",
                    tag2:"含小麦、乳成分",
                    big:""
                }
            ],
        },
        {
            id: "09",
            big: "小料/提示",
            frist: [
                {
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-nine/xm1.jpg?sign=e8e7f145a367a1a27a03cf2090ec32fb&t=1716466308",
                    title:"西米",
                    title2:"每日新鲜现制",
                    tag1:"小料",
                    tag2:"可添加",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-nine/qk2.jpg?sign=eb04a12958e36e5c973d396eed1076e2&t=1716466322",
                    title:"青稞",
                    title2:"每日新鲜现制",
                    tag1:"小料",
                    tag2:"可添加",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-nine/hd3.jpg?sign=7c276db0796f425b06841e5e1d5085fc&t=1716466335",
                    title:"红豆",
                    title2:"每日新鲜现制",
                    tag1:"小料",
                    tag2:"可添加",
                    big:""
                },{
                    price:"19",
                    image:"	https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-nine/ptd4.jpg?sign=5465411f8b70f0b897c413837858e379&t=1716466348",
                    title:"葡萄冻",
                    title2:"每日新鲜现制",
                    tag1:"小料",
                    tag2:"可添加",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-nine/ttd6.jpg?sign=93319d990ed154d163cff798a16f5800&t=1716466365",
                    title:"弹弹冻",
                    title2:"每日新鲜现制",
                    tag1:"小料",
                    tag2:"可添加",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-nine/xcd5.jpg?sign=705b9907f50c8772503ba47285472569&t=1716466399",
                    title:"仙草冻",
                    title2:"每日新鲜现制",
                    tag1:"小料",
                    tag2:"可添加",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-nine/xy7.jpg?sign=540e7039c5f5d0f712271e1f0df0e658&t=1716466412",
                    title:"西柚粒",
                    title2:"每日新鲜现制",
                    tag1:"小料",
                    tag2:"可添加",
                    big:""
                },{
                    price:"19",
                    image:"https://636c-cloud1-1gprl58p0dd92671-1326489125.tcb.qcloud.la/image/footer-nine/zz8.jpg?sign=209635e2f52ab39f515ca3f053fa17ca&t=1716466428",
                    title:"自创芝芝",
                    title2:"每日新鲜现制",
                    tag1:"小料",
                    tag2:"可添加",
                    big:""
                }
            ],
        }
      ],
      price:19, // 商品单价
      totalPrice: 0, // 总价，初始值等于商品单价
    },
    // 购物车
    onNumberChange(event) {
        this.setData({ number: event.detail});
        this.calculateTotalPrice(); // 更新总价
      },
      calculateTotalPrice() {
        // 假设单价为100，可以根据实际情况进行调整
        this.setData({ totalPrice: this.data.number * this.data.price*100});
      },
      onSubmitOrder() {
        // 处理提交订单的逻辑
        wx.showToast({
          title: '订单提交成功',
          icon: 'success',
        });
      },
    //星星标签点击
  toggleIcon: function() {
    this.setData({
      isActive: !this.data.isActive
    })
  },
  // 到店取
  showPopup() {
    wx.navigateTo({
      url: '/pages/ff/ff',
    })
  },
  showPopupp:function(){
      wx.navigateTo({
        url: '/pages/address/address',
      })
  },
// 商品信息
    onLoad: function (options) {
    // 店铺名
    this.setData({
        shopName:options.shopName
    })
    // 左侧导航
      var sysInfo = wx.getSystemInfoSync();
      this.setData({
        classfiySelect: this.data.leftText[0].id,
        screenHeight: sysInfo.windowHeight
      })
    }, 
    /* 删除item */
    delAddress: function (e) {
        var id = e.currentTarget.dataset.id//数组下标
        this.data.addressList.splice(id, 1);
         // 更新data数据对象  
        if (this.data.addressList.length > 0) {
            this.setData({
                addressList: this.data.addressList
            })
            wx.setStorageSync('addressList', this.data.addressList);
        } else {
                this.setData({
                    addressList: this.data.addressList
                })
            wx.setStorageSync('addressList', []);
        }
    },
    //滚动触发左侧跟随
    scroll: function (e) {
      var scrollTop = e.detail.scrollTop,
          h = 0,
          classfiySelect;
      var that = this;
  
      that.data.leftText.forEach(function (clssfiy, i) {
        var _h = that.length(clssfiy['id']);
  
        if (scrollTop >= h) {
          classfiySelect = clssfiy['id'];
        }
        h += _h;
        console.log("滚动高度：", scrollTop);
        console.log("高度差：", that.data.heightArr)
      })
      that.setData({
        classfiySelect: classfiySelect,
      })
    },
    //求每一栏高度
    length: function (e) {
      var query = wx.createSelectorQuery();
      //选择id
      var that = this;
      var rightData = that.data.rightData;
      var heightArr = [];
      for (var i = 0; i < rightData.length; i++) {
        if (rightData[i]['id'] == e) {
          query.selectAll('.listHeight').boundingClientRect(function (n) {
            var s = 0;
            n.forEach((res) => {
              s += res.height;
              heightArr.push(s)
            });
            var arr1 = heightArr;
            var arr2 = [];
            arr2.push(arr1[0]);
            for (var j = 1; j <= arr1.length - 1; j++) {
              arr2.push(arr1[j] - arr1[j - 1])
            }
            that.setData({
              heightArr: arr2
            })
          }).exec()
          return that.data.heightArr[i]
        }
      }
    },
    //点击左边事件
    left_list: function (e) {
      var that = this;
      var l_id = e.currentTarget.dataset.id;
      that.setData({
        rigId: l_id,
        classfiySelect: l_id
      })
    }
  })